var path = require('path')

module.exports = {

  entry: path.join(__dirname, './src/main.ts'),

  output: {
    path: path.join(__dirname, '/dist/'),
    filename: 'bundile.js',
    publicPath: '/dist/'
  },

  module: {

    loaders: [
      {
        test: /\.ts$/,
        loader: 'ts'
      }
    ]

  },
  devServer: {
    inline: true,
    hot: true,
    port: 8081
  },
  resolve: {
    extensions: ['', '.js', '.ts']
  }

}